package com.crl.utils
{
	import flash.filters.BitmapFilter;
	import flash.filters.ColorMatrixFilter;

	public class FilterUtil
	{
		private static var _disableFilter:ColorMatrixFilter;
		
		public function FilterUtil()
		{
		}
		
		
		/**
		 * 不可用状态的统一滤镜,灰度; 
		 * 
		 */		
		public static function disableFilter():BitmapFilter{
			if(_disableFilter==null){
				_disableFilter= new ColorMatrixFilter();
				var _nGreen:Number = 0.6094; 
				var _nRed:Number = 0.3086;
				var _nBlue:Number = 0.082;
				_disableFilter.matrix = [_nRed, _nGreen, _nBlue, 0, 0, _nRed, _nGreen, _nBlue, 0, 0, _nRed, _nGreen, _nBlue, 0, 0, 0, 0, 0, 1, 0];
			}
			return _disableFilter;
		}
		
	}
}